
            <div class="tipBanner">		    <input type='hidden' id='qpj' value='<?php echo $output['auction']['firstprice'];?>'/>			<input type='hidden' id='jjfd' value='<?php echo $output['auction']['addprice'];?>'/>			<input type='hidden' id='xy_ykj' value='<?php echo $output['auction']['yikoujia'];?>'/>
            <span class="title">领先价</span>
            <div class="last"><?php echo $output['auction']['leadingprice'];?>元</div>
            <div class="close"></div>
        </div>

        <div class="priceBanner">
            <span class="title">出价</span>
            <div class="editTxt">
            	<span class="hover">
            		<?php 
						if($output['auction']['auction_log_id']=='0'){
							if($output['auction']['firstprice']>0){
								echo $output['auction']['firstprice'];
							}else{
								echo $output['auction']['addprice'];
							}
						}else{
							echo $output['auction']['leadingprice']+$output['auction']['addprice'];
						}     			
            		?>
            	</span>
            </div>
            <div class="tips"></div>
        </div>

        <div class="btnBanner">
        	<?php if($output['auction']['yikoujia']>0){?>
        	<div class="fixedPrice" fixedprice="<?php echo $output['auction']['yikoujia'];?>">一口价￥<?php echo $output['auction']['yikoujia'];?></div>
        	<?php }?>
            <div class="confirmBtn">出价</div>
        </div>
        <div class="numkey">
        <ul>
            <li class="num">
                <div>1</div>
                <span></span>
            </li>
            <li class="num">
                <div>2</div>
                <span>ABC</span>
            </li>
            <li class="num">
                <div>3</div>
                <span>DEF</span>
            </li>
            <li class="num">
                <div>4</div>
                <span>GHI</span>
            </li>
            <li class="num">
                <div>5</div>
                <span>JKL</span>
            </li>
            <li class="num">
                <div>6</div>
                <span>MNO</span>
            </li>
            <li class="num">
                <div>7</div>
                <span>PQRS</span>
            </li>
            <li class="num">
                <div>8</div>
                <span>TUV</span>
            </li>
            <li class="num">
                <div>9</div>
                <span>WXYZ</span>
            </li>
            <li class="num othernum"><div>00</div></li>
            <li class="num" style="line-height: 50px;"><div>0</div></li>
            <li class="delete"></li>
        </ul>
    </div>

	<script type="text/javascript">
		$(function(){
			$('.num').tap(function(){				
				var price = $('.hover').html();
				$('.hover').html(price+$(this).children('div').html());
			});

			$('.delete').tap(function(){
				var price = $('.hover').html();
				price ='';
				$('.hover').html(price);
			});			

			$('.close').tap(function(){
				$('.fixednumMain').hide();
			});

			$('.fixedPrice').tap(function(){
				var fixedPrice = $(this).attr('fixedprice');
				$('.hover').html(fixedPrice);
			});
			
			$('.confirmBtn').tap(function(){
				var auction_price = parseInt($('.hover').html());				var xy_ykj=<?php echo $output['auction']['yikoujia'];?>;				var qpj=document.getElementById('qpj').value;var jjfd=document.getElementById('jjfd').value;var bs=(auction_price-qpj)/jjfd;var auction_price_a=auction_price-qpj;var r = /^[0-9]*$/;
				if((auction_price<=0)||auction_price>100000){
					$('.tips').html('出价错误！！！');
				return false;
				}				if(r.test(bs)){				}				else{					if(xy_ykj>0){											}					else{					alert('不符合倍数:'+bs);					return false;						}									}								
				
				var user_id = '<?php echo $output['user']['user_id'];?>';				
				var auction_id = '<?php echo $output['auction']['id'];?>';
				var cashprice = parseInt('<?php echo $output['auction']['cashprice'];?>');

				if(cashprice>0){
					$.ajax({
						type:'post',
						url:'index.php?act=index&op=checkauctionlog',
						data:{user_id:user_id,auction_id:auction_id,auction_price:auction_price},
						dataType:'json',
						success:function(data){
							if(data.state==1){
								location.href = 'index.php?act=index&op=auctionaddcash&auction_price='+auction_price+'&auction_id='+auction_id;
								return false;
							}else if(data.state==2){
								$('span[state_auction_id="'+auction_id+'"]').removeClass('bidLeader');
								$('span[state_auction_id="'+auction_id+'"]').addClass('bidOut');
								var html = '<div class="ddli loglist'+auction_id+'">'
												+'<div class="state">'
													+'<div class="bidTime">'
														+getNowFormatDate()
													+'</div>'
													+'<div class="bidState">'
														+'<span class="bidLeader"></span>'
													+'</div>'
												+'</div>'
												+'<div class="avatar">'
													+'<a href="index.php?act=my&op=home&uid=<?php echo $output['user']['user_id'];?>">'
														+'<img src="<?php echo $output['user']['avatar'];?>">'
													+'</a>'
													+'<div class="buyerLevels lv1"></div>'
												+'</div>'
												+'<div class="bidUser">'
													+'<div class="name">'
														+'<a href="index.php?act=my&op=home&uid=<?php echo $output['user']['user_id'];?>">'
															+'<?php echo $output['user']['nickname'];?>'
														+'</a>'
														+'<div class="price">￥'+auction_price+'元</div>'
													+'</div>'
												+'</div>'
											+'</div>';
								
								$('div[bidList="'+auction_id+'"]').prepend(html);	
								$('.fixednumMain').hide();

								$.ajax({
									type:'post',
									url:'index.php?act=index&op=auctionaddtuisong',
									data:{auction_id:auction_id},
									dataType:'json',
									success:function(data){
										return false;
									}
								});
								

								return false;
							}else{
								$('.tips').html(data.error);
							}
						}
					});
				}else{

					$.ajax({
						type:'post',
						url:'index.php?act=index&op=auctionaddprice',
						data:{user_id:user_id,auction_id:auction_id,auction_price:auction_price},
						dataType:'json',
						success:function(data){
							if(data.state==1){	

								if(data.yikoujia_end==1){
									location.href = 'index.php?act=index&auction_id='+auction_id;
									return false;
								}
								
								$('span[state_auction_id="'+auction_id+'"]').removeClass('bidLeader');
								$('span[state_auction_id="'+auction_id+'"]').addClass('bidOut');
								var html = '<div class="ddli loglist'+auction_id+'">'
												+'<div class="state">'
													+'<div class="bidTime">'
														+getNowFormatDate()
													+'</div>'
													+'<div class="bidState">'
														+'<span class="bidLeader"></span>'
													+'</div>'
												+'</div>'
												+'<div class="avatar">'
													+'<a href="index.php?act=my&op=home&uid=<?php echo $output['user']['user_id'];?>">'
														+'<img src="<?php echo $output['user']['avatar'];?>">'
													+'</a>'
													+'<div class="buyerLevels lv1"></div>'
												+'</div>'
												+'<div class="bidUser">'
													+'<div class="name">'
														+'<a href="index.php?act=my&op=home&uid=<?php echo $output['user']['user_id'];?>">'
															+'<?php echo $output['user']['nickname'];?>'
														+'</a>'
														+'<div class="price">￥'+auction_price+'元</div>'
													+'</div>'
												+'</div>'
											+'</div>';
								
								$('div[bidList="'+auction_id+'"]').prepend(html);	
								$('.fixednumMain').hide();

								$.ajax({
									type:'post',
									url:'index.php?act=index&op=auctionaddtuisong',
									data:{auction_id:auction_id},
									dataType:'json',
									success:function(data){
										return false;
									}
								});
								

								return false;
							}else{
								$('.tips').html(data.error);
							}
						}
					});
				}
			});

		});
		
		function getNowFormatDate() {
			    var date = new Date();
			    var seperator1 = "-";
			    var seperator2 = ":";
			    var month = date.getMonth() + 1;
			    var strDate = date.getDate();
			    if (month >= 1 && month <= 9) {
			        month = "0" + month;
			    }
			    if (strDate >= 0 && strDate <= 9) {
			        strDate = "0" + strDate;
			    }
			    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
			            + " " + date.getHours() + seperator2 + date.getMinutes()
			            + seperator2 + date.getSeconds();
			    return currentdate;
			} 
	</script>
